package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author 孙维
 * @email 2744894093@qq.com
 * @date 2021-09-04 16:54:19
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listwithtree();

    void removeMenusByIds(List<Long> asList);

    /**
     * @Author:孙维
     * @Description://找到catelogId的完整路径
     * [父/子/孙子]
     * @Date: 2021/10/14 16:09
     * @Param:[catelogId]
     * @return:java.lang.Long[]
     **/
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

